package com.hoshiibuy.sku.entity.param;

import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* <p>
* 新增SKU分配参数
* </p>
*
* @author zhangshuhu
* @since 2019-05-05
*/

@Data
@ApiModel(value="新增SKU分配", description="新增SKU分配")
public class AllocationSkuAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "平台ID")
    @NotNull(message = "平台ID不能为空")
    private Long platformid;
    
    @ApiModelProperty(value = "门店ID")
    private Long storeid;

    @ApiModelProperty(value = "供应商ID")
    @NotNull(message = "供应商ID不能为空")
    private Long vendorid;
    
    @ApiModelProperty(value = "spuid")
    @NotNull(message = "SpuId不能为空")
    private Long spuid;
    
    @ApiModelProperty(value = "skuid")
    @NotNull(message = "SkuId不能为空")
    private Long skuid;
    
    @ApiModelProperty(value = "分配数量")
    @NotNull(message = "分配数量不能为空")
    @Min(message = "分配数量必须大于0",value = 1)
    private Long quantity;
    
    @ApiModelProperty(value = "是否删除")
    private Integer deleted;
    

}
